package com.sy.crm.service.impl;

import java.util.List;

import com.sy.crm.dao.EmployeeDao;
import com.sy.crm.model.Employee;
import com.sy.crm.service.EmployeeManager;

public class EmployeeManagerImpl implements EmployeeManager {
	private EmployeeDao employeeDao;

	public void addEmployee(Employee e) {
		employeeDao.add(e);
	}

	public void deleteEmployee(Integer id) {
		employeeDao.delete(id);
	}

	public Employee getEmployee(Integer id) {
		return employeeDao.getEmployee(id);
	}

	public List listEmployee() {
		return employeeDao.getEmployee();
	}

	public void updateEmployee(Employee e) {
		employeeDao.update(e);
	}

	public void setEmployeeDao(EmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}

}
